<?php

/*
	[ English learning assistant system]
	NAME:admin_model
*/
if (!defined('IN_ELS'))
{
    die('Hacking attempt');
}

class admin_userbase extends base {
	function admin_userbase() {
		$this->base();
	}
	
	function getAllAdmin(){
		$sqlText = "select *,FROM_UNIXTIME(regdate,'%Y-%m-%d %H:%i') regdate from admins ";
		$retData = $this->db->fetch_All($sqlText);
		return $retData;
	}
	function getNum()
	{
		$sqlText = "select count(*) from admins ";
		$retData = $this->db->result_first($sqlText);
		return $retData;	
	}
	

	
	
}

?>